.main-container {
  background: #EEEEEE;
  display: flex;
  flex-direction: row;
  padding: 5px;

  .left-panel-wrap {
    flex: 1;
    margin-right: 10px;
    background: #fff;
    position: relative;

    .chart-wrap {
      position: relative;
      width: 240px;
      .chart-title {
        display: inline-block;
        height: 30px;
        padding: 15px 20px;
        vertical-align: bottom;
        font-size: 16px;
        line-height: 16px;
        color: #49535E;
      }
      .water-level-chart {
        width: 180px;
        height: 200px !important;
        position: absolute;
        top: 15px;
        left: 30px;
      }
      .warning-text {
        width: 100%;
        text-align: center;
        color: red;
        font-size: 12px;
        position: absolute;
        bottom: 0;
      }

      .flow-chart {
        height: 135px;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
    .pie-chart {
      height: 210px;
    }
    .text-wrap {
      width: 240px;
      min-height: 200px;
      margin: 15px 0;
      .title {
        font-size: 12px;
        color: #647386;
        padding: 0 20px;
      }
      .main-text {
        background: #F5F7F8;
        margin: 10px 20px;
        padding: 15px;
        display: flex;
        .prefix {
          .line {
            min-height: 150px;
          }
        }
        .text-container {
          p {
            margin: 0;
          }
          span {
            font-size: 12px;
            color: #607592;
            line-height: 18px;
          }
          .num {
            font-weight: bold;
          }
        }
      }
    }


  }

  .right-panel-wrap {
    width: 1308px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .video-list-wrap {
    height: 247px;
    display: flex;
    justify-content: space-between;
    background: #EEEEEE;
    margin-bottom: 5px;
    .video-wrap {
      background: #fff;
    }
  }

  .bottom-wrap {
    min-height: 260px;
    max-height: 370px;
    overflow-y: auto;
    margin-top: 5px;

    .row {
      display: flex;
      flex-wrap: wrap;

      .gate-card-wrap {
        height: 260px;
        flex: 1;
        margin-left: 10px;
        border: 1px solid #e3e3e3;
        background: #fff;

        &:first-child {
          margin-left: 0;
        }

        .card-title {
          height: 50px;
          line-height: 50px;
          background: linear-gradient(0deg, rgba(232, 232, 232, 0.4), rgba(232, 232, 232, 0));
          border-bottom: 1px solid #e3e3e3;
          padding: 0 20px;
          display: flex;
          justify-content: space-between;
          color: #333333;
        }

        .card-content {
          display: flex;
          //flex-wrap: wrap;
          flex-direction: column;
          height: 210px;
          padding: 10px;

          .card-main-content {
            display: flex;
            flex: 1;
            .main-left-content {
              width: 50%;
              p {
                display: flex;
                margin: 10px;
                height: 30px;
                line-height: 30px;
                span {
                  width: 50px;
                }
                nz-input-group {
                  flex: 1;
                }
              }
              .control-btn-group {
                padding-top: 10px;
                padding-left: 10px;
                button {
                  color: #fff;
                  font-size: 14px;
                  border-radius: 4px;
                  margin-right: 10px;
                  width: 60px;
                  height: 30px;
                  line-height: 30px;
                  border: none;
                }
                .green-btn {
                  background: #1AB8A4;
                }
                .grey-btn {
                  background: #ABC1D0;
                }
                a {
                  text-decoration: underline;
                  color: #617189;
                  margin-left: 10px;
                }
              }
            }
            .main-right-content {
              width: 50%;
              .content-wrap {
                height: 136px;
                background: #F5F6F7;
                display: flex;
                .chart-wrap {
                  width: 110px;
                  position: relative;
                  .chart {
                    width: 110px;
                  }
                  .shadow-wrap {
                    position: absolute;
                    left: 20px;
                    bottom: 10px;
                    width: 68px;
                    height: 12px;
                    background: #DEE5EA;
                    border-radius: 50%;
                  }
                }
                .data-wrap {
                  flex: 1;
                  padding: 15px 0;
                  display: flex;
                  .prefix {
                    margin-right: 10px;
                    .line {
                      min-height: 95px;
                    }
                  }
                  .data-container {
                    padding: 10px 0;
                    p {
                      margin: 0;
                      color: #4D5663;
                    }
                    .value {
                      font-size: 12px;
                      font-weight: bold;
                      color: #108EE9;
                    }
                  }
                }
              }
            }
          }

          .card-bottom-content {
            height: 42px;
            margin: 0 10px;
            border-top: 1px solid #ebebeb;
            .status-switch {
              display: inline-block;
              margin-right: 12px;
              margin-top: 12px;
            }
          }
          .info-cell {
            width: 50%;
            padding: 10px;
            display: flex;

            .cell {
              margin-left: 10px;
              height: 50px;
              line-height: 50px;
            }

            .label {
              width: 70px;
            }

            .value {
              flex: 1;

              i.block {
                display: inline-block;
                background: #cbcbcb;
                height: 22px;
                width: 22px;
                border-radius: 50%;
                vertical-align: middle;
              }

              i.false {
                background: #ff7c76;
              }

              i.true {
                background: #5eb379;
              }
            }
          }
        }
        .switch {
          .offline {
            color: #7D8288;
          }
          .blue {
            color: #108EE9;
          }
          span {
            margin-left: 5px;
          }
        }
      }
    }

    .second-row {
      margin-top: 10px;
    }
  }
}

::-webkit-scrollbar {
    width: 0;
}
.prefix {
  width: 5px;
  display: flex;
  flex-direction: column;
  margin-right: 20px;
  padding-top: 5px;
  .point {
    width: 5px;
    height: 5px;
    background-size: 100% 100%;
    background: url("../../../../../assets/images/gate/point-icon.png") no-repeat center;
  }
  .line {
    width: 1px;
    margin: 0 2px;
    background-size: contain;
    background: url("../../../../../assets/images/gate/line-icon.png") center;
  }
}
